package com.burgeon.backend.SHOPBACKEND.mappers;

import com.burgeon.backend.SHOPBACKEND.entity.Brand;
import com.burgeon.backend.SHOPBACKEND.entity.Classify;

import java.util.List;

public interface GoodsBackendClassifyMapper {

    Integer getBrandMinNub(String token);


    int getBrandGoodsCount(String id);


    int getBrandNubByNubAndToken(String token,int nub);

    Integer upBrandNub(int nub,String id);

    int getBrandNubById(String id);

    int getBrandMaxNub(String token);

    Integer upBrandShow(String id,String isShow);

    List<Brand> showBrandData(String token);


    Brand getBrand(String name,String token);

    Integer createBrand(Brand brand);

    Integer updateIsShowById (String isShow,String id);//是否展示

    List<Classify> getClassify(String account);

    Integer insertClassify(Classify classify);//添加商品类型

    Integer deleteClassify(int id);//根据ID删除商品类型

    Integer updateClassifyById(Classify classify);//根据ID修改商品类型
}
